*This file produces a graph for figure A1


****Variable Definitions: 

*settlement: Tribal water settlement identification
*settlementPct: water right settlement volume as a percentage of total settlement volume
*priorityOrder: priority rank of each water right within a settlement. A lower rank indicates a more senior right.
*bargainingParty: Bargaining party type within settlement
*id_code2: for graphing purposes, groups bargaining party and water right priority group within a settlement
********************************************************************************



colorpalette "42 72 88" "86 191 130", ipolate(100, HCL power(2.5))
graph bar (sum) settlementPct, over(id_code2) over(settlement, label(labsize(small) angle(45))) asyvars stack ///
ytitle("Post-Settlement Water Right Volume (%)" "<– Senior - Junior –>") ylabel(, angle(0) format(%12.0gc)) ///
bar(1, c(navy) lcolor(none)) ///
bar(2, c(gs10) lcolor(none)) ///
bar(3, c(navy) lcolor(none)) ///
bar(4, c(gs10) lcolor(none)) ///
bar(5, c(navy) lcolor(none)) ///
bar(6, c(gs10) lcolor(none)) ///
bar(7, c(navy) lcolor(none)) ///
bar(8, c(gs10) lcolor(none)) ///
bar(9, c(navy) lcolor(none)) ///
bar(10, c(gs10) lcolor(none)) ///
bar(11, c(navy) lcolor(none)) ///
bar(12, c(gs10) lcolor(none)) ///
bar(13, c(navy) lcolor(none)) ///
bar(14, c(gs10) lcolor(none)) ///
bar(15, c(navy) lcolor(none)) ///
bar(16, c(gs10) lcolor(none)) /// nez perce IDs
bar(17, c(navy) lcolor(none)) ///
bar(18, c(gs10) lcolor(none)) ///
bar(19, c(navy) lcolor(none)) ///
bar(20, c(gs10) lcolor(none)) ///
bar(21, c(navy) lcolor(none)) ///
bar(22, c(gs10) lcolor(none)) ///
bar(23, c(navy) lcolor(none)) ///
bar(24, c(gs10) lcolor(none)) ///
bar(25, c(navy) lcolor(none)) ///
bar(26, c(gs10) lcolor(none)) ///
bar(27, c(navy) lcolor(none)) ///
bar(28, c(gs10) lcolor(none)) ///
bar(29, c(navy) lcolor(none)) ///
bar(30, c(gs10) lcolor(none)) ///
bar(31, c(navy) lcolor(none)) ///
bar(32, c(gs10) lcolor(none)) ///
bar(33, c(navy) lcolor(none)) ///
bar(34, c(gs10) lcolor(none)) ///
bar(35, c(navy) lcolor(none)) ///
bar(36, c(navy) lcolor(none)) ///
bar(37, c(gs10) lcolor(none)) ///
bar(38, c(navy) lcolor(none)) ///
bar(39, c(gs10) lcolor(none)) ///
bar(40, c(navy) lcolor(none)) ///
bar(41, c(gs10) lcolor(none)) ///
bar(42, c(navy) lcolor(none)) ///
bar(43, c(gs10) lcolor(none)) ///
bar(44, c(navy) lcolor(none)) ///
bar(45, c(gs10) lcolor(none)) ///
bar(46, c(navy) lcolor(none)) ///
bar(47, c(gs10) lcolor(none)) ///
bar(48, c(navy) lcolor(none)) ///
bar(49, c(gs10) lcolor(none)) ///
legend(order(1 "Tribe" 2 "Irrigation Districts") pos(6) col(2))
